<template>
  <div>首页<br>
  <hr>
 <el-menu
      class="el-menu-demo"
      mode="horizontal"
      float:right
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      style="margin-auto:0">
       <!-- <el-menu-item index="1">
        <i class="el-icon-s-home"></i>
        <span slot="title">  <router-link to="/AppOne/vuexShopAdm">账户注册</router-link></span>
      </el-menu-item> -->
       <el-menu-item index="1">
        <i class="el-icon-loading"></i>
        <span slot="title">  <router-link to="/AppOne/vuexSaleCont">评论点赞</router-link></span>
      </el-menu-item>
      <!-- <el-menu-item index="3">
        <i class="el-icon-loading"></i>
        <span slot="title">  <router-link to="/vuexLogin">登陆账户</router-link></span>
      </el-menu-item>
       -->
    </el-menu>

    <router-view/>
  </div>
  
</template>

<script>
import {getUser} from "../service/ajax.js"
export default {
//   created(){
//       this.$router.push("/vuexLogin")    
//   }
async created(){
    //    var info =  this.getUser();
    // //  console.log(info)
    //  if(info.length != 1){
    //    this.$router.push("/login");
    //  }
    //  else{
    //    this.$router.push("/AppOne/vuexShopAdm");
    //  }
    //     var response = await getUser(this.$cookies.get('token'));
    //     alert(JSON.stringify(response))
    //     console.log(response);
    //     if(response.length != 0){
    //         this.userObj = response.data;
    //     }else{
    //          this.$router.push("/login");
    //     }
    },
}
</script>

<style>

</style>